<?php
error_reporting(0);
session_start();
include 'user.php';
include 'talk.php';

$user = new User;
$user->init_for_db($_SESSION['id']);

$status = $user->get_status();
if($status == 0 || $status == 1)
    die('FALSE');
$talker = new Talker;
$talker->send_msg($user->get_session_id(),$_POST['message']);
die("TRUE");

?>